<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <#include  "../common.ftl" >
</head>
<body>
<form class="layui-form" style="width:80%;">
    <@shiro.user>
        <input type="hidden" name="materialEmpid" value="<@shiro.principal property="id"></@shiro.principal> ">
    </@shiro.user>
    <div class="layui-form-item layui-row">
        <div class="layui-col-xs12">
            <label class="layui-form-label">物料名称</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input"
                       name="materialName" id="materialName" lay-verify="required" value="${(material.materialName)!}"
                       placeholder="请输入物料名称">
            </div>
        </div>
    </div>
    <div class="layui-form-item layui-row">
        <div class="layui-col-xs12">
            <label class="layui-form-label">物料编码</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input"
                       name="materialNo" id="materialNo" lay-verify="required" value="${(material.materialNo)!}"
                       placeholder="请输入物料编码">
            </div>
        </div>
    </div>
    <div class="layui-form-item layui-row ">
        <div class="layui-col-xs12">
            <label class="layui-form-label">计量单位</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input"
                       name="materialUnit" id="materialUnit" lay-verify="required" value="${(material.materialUnit)!}"
                       placeholder="请输入单位">
            </div>
        </div>
    </div>
    <br/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-lg" lay-submit=""
                    lay-filter="addOrUpdateMaterial">确认
            </button>
            <button class="layui-btn layui-btn-lg layui-btn-normal" id="closeBtn">取消</button>
        </div>
    </div>
</form>
<script type="text/javascript" src="${ctx}/layuimini/js/supplier/addMaterial.js"></script>

</body>
</html>

